package com.example.yingjiguanli_demo.pojo;

public class WebSocketResponse {
    private String action;       // 消息类型
    private String result;       // 比赛结果
    private Integer userScore;   // 用户分数
    private Integer opponentScore; // 对手分数

    // 构造函数
    public WebSocketResponse(String action, String result, Integer userScore, Integer opponentScore) {
        this.action = action;
        this.result = result;
        this.userScore = userScore;
        this.opponentScore = opponentScore;
    }

    // Getters and Setters
    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Integer getUserScore() {
        return userScore;
    }

    public void setUserScore(Integer userScore) {
        this.userScore = userScore;
    }

    public Integer getOpponentScore() {
        return opponentScore;
    }

    public void setOpponentScore(Integer opponentScore) {
        this.opponentScore = opponentScore;
    }
}
